
local Tube = require'entities.tube'

WaterPipe = {}
WaterPipe.mt = { __index = WaterPipe }
setmetatable(WaterPipe, Tube.mt)

function WaterPipe.initialize(kind, x, y, transform, layer)


	local WATERPIPE_t = Tube.new('water_tubes', nil, x, y, transform, layer)
	setmetatable(WATERPIPE_t, WaterPipe.mt)

	WATERPIPE_t.tile_grid:setTile(1, 1, kind)
	WATERPIPE_t.health = WATERPIPE_t.health * WATER_PIPE_HEALTH_MOD
	WATERPIPE_t.dmg_rate =  WATERPIPE_t.dmg_rate/WATER_PIPE_HEALTH_MOD


	return WATERPIPE_t

end


function WaterPipe.new(kind, x, y, transform, layer)

	local o = WaterPipe.initialize(kind, x, y, transform, layer)

	return o

end



return WaterPipe